package com.xbongbong.parent.pojo.list;

import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.pro.weblist.pojo.CustomerPlanPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author sunshaoxiang
 * @ClassName CommunicatePlanResultPojo
 * @Description 访客计划返回前端VO解析pojo
 * @Date 2022/5/31 11:00
 * @Version 1.0
 **/
@Getter
@Setter
@ToString
public class CommunicatePlanResultPojo implements Serializable {

    private static final long serialVersionUID = 4069051133873153584L;

    private String corpid;
    /**
     *
     */
    private List<CustomerPlanPojo> planList;

    /**
     * 表单解释
     */
    private List<FieldAttrEntity> explains;

    /**
     *
     */
    private List<Long> planIdList;

    /**
     * 分页当前页
     */
    private Integer page = 1;

    /**
     * 分页每页记录数
     */
    private Integer pageSize = 20;

    /**
     *总数
     */
    private Long totalElements;

    /**
     * 权限按钮
     */

    private ButtonPermissionPojo buttonPermissionPojo;

    public CommunicatePlanResultPojo() {
    }

    public CommunicatePlanResultPojo(String corpid, List<CustomerPlanPojo> planList, List<FieldAttrEntity> explains, List<Long> planIdList, Integer page, Integer pageSize, Long totalElements, ButtonPermissionPojo buttonPermissionPojo) {
        this.corpid = corpid;
        this.planList = planList;
        this.explains = explains;
        this.planIdList = planIdList;
        this.page = page;
        this.pageSize = pageSize;
        this.totalElements = totalElements;
        this.buttonPermissionPojo = buttonPermissionPojo;
    }
}
